package com.crm.dao.mapper.customMapper.returnMoneyManagerCustomMapper;

import com.crm.model.entity.returnMoney.BankOrder;
import com.crm.model.vo.returnMoney.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @Author xielinqi
 * @Date 9:00 上午 2021/11/11
 */
public interface BankOrderCustomMapper {
    /**
     * 根据flowId、orderId、returnMoneyId删除
     * @Param bankOrder
     * @Author xielinqi
     * @Date 9:02 上午 2021/11/11
     */
    int delByFlowIdAndOrderIdAndReturnMoneyId(BankOrder bankOrder);

    /**
     * 根据flowId、customerPayId删除
     * @Param bo
     * @Author xielinqi
     * @Date 2:17 下午 2021/11/11
     */
    int delByFlowIdAndCustomerPayId(BankOrder bo);

    /**
     *
     * @Param productOrderId
     * @Author xielinqi
     * @Date 10:31 上午 2021/11/15
     */
    List<BankOrderRelateVO> queryBankRelatedByProductOrderId(@Param("productOrderId") String productOrderId);

    /**
     * 根据订单id删除
     * @Param productOrderId
     * @Author xielinqi
     * @Date 1:49 下午 2021/11/15
     */
    int delByProductOrderId(String productOrderId);

    /**
     * 根据flowId、orderId、returnMoneyId修改
     * @Param bo
     * @Author xielinqi
     * @Date 2:27 下午 2021/11/22
     */
    void updateByFlowIdAndOrderIdAndReturnMoneyId(BankOrder bo);
}
